#include <iostream>
#include <functional>
#include <tuple>
#include <string>

using namespace std;
//tuple的构造函数时explicit的，不支持隐式类型转换


void test(){
    std::tuple<size_t,size_t,size_t>tree;
    tree=std::make_tuple(1,2,3);

    std::tuple<std::string,int>t{"zahngsan",1001};

    auto str=std::get<0>(t);
    auto i=std::get<1>(t);

    //查看tuple详细信息

    typedef decltype(t) trans;//将t的类型放到trans中

    //返回trans中对象成员的数量
    size_t sz=std::tuple_size<trans>::value;//返回2
    
    tuple_element<1,trans>::type cnt=std::get<1>(t);


}